home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_319 / cnewssrc / cnews.orig.lzh / libsmall / sys.slow.c < prev   
C/C++ Source or Header  |  1989-06-27  |  659b  |  50 lines

  1. /*
  2.  * news sys file reading functions (slow, small, on-disk version)
  3.  */
  4.  
  5. #include <stdio.h>
  6. #include <sys/types.h>
  7. #include "news.h"
  8. #include "system.h"
  9.  
  10. /* exports */
  11. boolean justone = YES;
  12.  
  13. /* imports */
  14. extern struct system *currsys, *firstsys;
  15.  
  16. struct system *
  17. mysysincache()
  18. {
  19.     return NULL;
  20. }
  21.  
  22. void
  23. remmysys(sys)
  24. struct system *sys;
  25. {
  26.     /* no cache */
  27. }
  28.  
  29. void
  30. rewsys(fp)
  31. FILE *fp;
  32. {
  33.     if (fp != NULL)
  34.         (void) rewind(fp);
  35. }
  36.  
  37. /*
  38.  * Free current sys entry & associated memory.  Zero currsys too.
  39.  */
  40. void
  41. freecurrsys()
  42. {
  43.     if (currsys == NULL)
  44.         return;
  45.     nnfree(&currsys->sy_name);
  46.     nnfree(&currsys->sy_ngs);
  47.     nnfree(&currsys->sy_cmd);
  48.     nnafree(&currsys);
  49. }
  50.